package com.huarui.roleEmployee.dao.impl;


import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.companypackage.model.RoleEmployee;
import com.huarui.roleEmployee.dao.IRoleEmployeeDao;

public class RoleEmployeeDaoImpl extends BaseDaoImpl implements IRoleEmployeeDao{

	public List<Map> getRoleList(Map map) {
		return this.getSqlMapClientTemplate().queryForList(namespace+".getRoleListByCondition",map);
	}
	public void updateRoleEmployee(Map map){
		this.getSqlMapClientTemplate().update(namespace+".updateRoleEmployee", map);
	}
	public void deleteRoleEmployee(Map map){
		this.getSqlMapClientTemplate().delete(namespace+".deleteRoleEmployee", map);
	}
	public RoleEmployee getRoleEmployee(Map map){
		return (RoleEmployee) this.getSqlMapClientTemplate().queryForObject(namespace+".getRoleEmployee", map);
	}
	public void createRoleEmployee(RoleEmployee roleEmployee){
		this.getSqlMapClientTemplate().insert(namespace+".createRoleEmployee", roleEmployee);
	}
}
